//
//  QDItemButtonCollectionViewCell.m
//  QDMetroClient
//
//  Created by YueWen on 2019/2/11.
//  Copyright © 2019 YueWen. All rights reserved.
//

#import "QDItemButtonCollectionViewCell.h"

@implementation QDItemButtonCollectionViewCell

- (void)buildView {
    [super buildView];
    
    self.itemButton = ({
        
        RITLItemButton *button = [RITLItemButton new];
        button.autoAdjustImageView = true;
        button.userInteractionEnabled = false;
        button.imageSize = @[@40].ritl_size;
        button.titleLabelEdgeInsets = UIEdgeInsetsZero;
        button.imageViewEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0);
        button.titleLabel.text = @"生活圈哈哈";
        button.titleLabel.font = RITLRegularFont(12);
        button.titleLabel.textColor = QDSColorDefaultBlack;
        
        button;
    });
    
    [self.contentView addSubview:self.itemButton];
    
    [self.itemButton mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.offset(0);
    }];
}


/// <RITLSDCycleScrollViewDataSource>
- (UIImageView *)imageView {
    return self.itemButton.imageView;
}

@end

